package ae.pcfc.etks.cld.to.web.util;


import java.util.Collection;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.core.GrantedAuthority;

/**
 * 
 * @author
 *
 */
public interface SecurityService {
	
	
	public boolean isAuthenticated();
	
	public boolean isAuthenticatedByRequest(HttpServletRequest request);
	
	public Collection<GrantedAuthority> getCurrentLoginedUserRole();
	
	public boolean isCompanyAdmin();
	
	public boolean isCompanyEmployee();
	
	public boolean isGeneralAdmin();
	
	public boolean isITAdmin();
	
	public boolean isDefaultUser();
	
	public String getLoginedUsername();
	
}
